def test(number: int, cm: int, dc: int, wn: int):
    mc = 0
    if wn > 2:
        if number > 2 and number > 2 or number > 2:
            if number > 0:
                if wn > 2 or wn > 2:
                    mc = 2
                else:
                    mc = 5
            else:
                mc = 100
    else:
        mc = 1
    nnn = number * cm
    if cm <= 4:
        num_incr = 4
    else:
        num_incr = cm
    n_num_incr = nnn / num_incr
    nnn_left = dc * num_incr * (n_num_incr / 2 + n_num_incr % 2)
    nnn_right = nnn - nnn_left
    is_flag = nnn_right
    if is_flag:
        cell = 1
    else:
        cell = 0
    return cell